﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VCommons.Entity;
namespace ef.ServiceInterface
{
    /// <summary>
    /// 用户模块业务
    /// 作用：1 组合实体，2 实体赋值，3 操作组合
    /// </summary>
    public interface IUserService
    {
        /// <summary>
        /// 注册用户
        /// </summary>
        /// <param name="entity"></param>
        void RegisterUser(Entity.UserBase_Ext entity);
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userID"></param>
        void DelUser(int? userID);
        /// <summary>
        /// 得到一个用户实体
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        Entity.UserBase_Ext GetUserByID(int? userID);
        /// <summary>
        /// 根据条件得到列表
        /// </summary>
        /// <param name="vp"></param>
        /// <param name="pp"></param>
        /// <returns></returns>
        VCommons.Entity.PagedList<Entity.UserBase_Ext> GetUser(VPredication vp, PagingParam pp);
        /// <summary>
        /// 编辑用户
        /// </summary>
        /// <param name="entity"></param>
        void EditUser(Entity.UserBase_Ext entity);
    }
}
